package com.lzy.pattern.decorator;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @ClassName: Garnish
 * @Description: 抽象装饰类
 * @Author: LiuZy
 * @Date: 2022/4/23 14:45
 * @Version: 1.0
 */
public abstract class Garnish extends FastFood{

    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, double price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}